import Cookies from 'js-cookie'

// 用户token
const TokenKey = 'HRSAAS_TOKEN'

// 时间戳
const TokenTime = 'TOKENTIME'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}

export function setTokenTime() {
  return Cookies.set(TokenTime, Date.now())
}

export function getTokenTime() {
  return Cookies.set(TokenTime)
}
